package com.firewolf.hibernate.extend.subclass;

import javax.persistence.Column;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;

/**
 * 子类
 * @author liuxing
 *
 */
@Entity
@DiscriminatorValue("STUDENT")
public class Student extends Person {
	@Column
	private String school;
	public String getSchool() {
		return school;
	}
	public void setSchool(String school) {
		this.school = school;
	}
}
